﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProdeManagmente.Model
{
    public class Match
    {
        private long id;
        private Tournament tournamente;
        private Team team1;
        private Team team2;
        private DateTime date;
        private DateTime time;
        public bool hasResult { set; get; }

        public Match()
        { }

        public Match(Tournament tournamente, Team team1, Team team2, DateTime date, DateTime time)
        {
            this.tournamente = tournamente;
            this.team1 = team1;
            this.team2 = team2;
            this.date = date;
            this.time = time;
        }

        public Match(long id, Tournament tournamente, Team team1, Team team2, DateTime date, DateTime time)
        {
            this.id = id;
            this.tournamente = tournamente;
            this.team1 = team1;
            this.team2 = team2;
            this.date = date;
            this.time = time;
        }

        public long getId()
        {
            return this.id;
        }

        public Tournament getTournament()
        {
            return this.tournamente;
        }

        public Team getTeam1()
        {
            return this.team1;
        }

        public Team getTeam2()
        {
            return this.team2;
        }

        public DateTime getDate()
        {
            return this.date;
        }

        public DateTime getTime()
        {
            return this.time;
        }

        public void setId(long id)
        {
            this.id = id;
        }

        public void setTournament(Tournament tournament)
        {
            this.tournamente = tournament;
        }

        public void setTeam1(Team team)
        {
            this.team1 = team;
        }

        public void setTeam2(Team team)
        {
            this.team2 = team;
        }

        public void setDate(DateTime date)
        {
            this.date = date;
        }

        public void setTime(DateTime time)
        {
            this.time = time;
        }
    }
}
